package com.its.web.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.time.LocalDate;

/**
 * @author 朱厚强
 * @version 1.0
 * @classname BusInsurancePolicyControllerListParam
 * list 方法参数
 */
@Data
public class BusInsurancePolicyControllerListParam {
    /**
     * 页码
     * 默认值为1
     */
     private int pageNum = 1;

    /**
     * 页面记录大小
     * 默认值为3
     */
      private int pageSize = 5;

    /**
     * 保单号
     */
      private String policyNumber;

    /**
     * 投保人姓名
     */
      private String insuredName;


      /**
      * 缴费日期
      */
      @JsonSerialize(using = LocalDateTimeSerializer.class)//序列化器
      @JsonDeserialize(using = LocalDateTimeDeserializer.class)//反序列化器
      @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//时间格式(含有日期和时间)
      private LocalDate paymentDate;

        /**
         * 保单状态
         */
        private Integer policyStatus;

        /**
         *  身份证号
         */
        private String insuredId;


}